package se.sics.drsm.ports.statemachine.events;

import se.sics.drsm.model.DRSMAddress;
import se.sics.kompics.Event;

/**
 * Created with IntelliJ IDEA.
 * User: Shadid Chowdhury <msrch@kth.se>
 * To change this template use File | Settings | File Templates.
 */
public class AddPeer extends Event {

    private final DRSMAddress sender;
    private final DRSMAddress newPeer;

    public AddPeer(DRSMAddress sender, DRSMAddress newPeer) {
        this.sender = sender;
        this.newPeer = newPeer;
    }

    public DRSMAddress getNewPeer() {
        return newPeer;
    }

    public DRSMAddress getSender() {
        return sender;
    }
}
